// vite.config.js
import { defineConfig } from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite@4.4.9_@types+node@20.4.7_sass@1.65.1/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/@vitejs+plugin-vue@4.2.3_vite@4.4.9_vue@3.3.4/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "node:path";
import AutoImport from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/unplugin-auto-import@0.16.6_rollup@2.79.1/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/unplugin-vue-components@0.25.1_rollup@2.79.1_vue@3.3.4/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ElementPlusResolver } from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/unplugin-vue-components@0.25.1_rollup@2.79.1_vue@3.3.4/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import viteCompression from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite-plugin-compression@0.5.1_vite@4.4.9/node_modules/vite-plugin-compression/dist/index.mjs";
import { viteMockServe } from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite-plugin-mock@2.9.6_mockjs@1.1.0_rollup@2.79.1_vite@4.4.9/node_modules/vite-plugin-mock/dist/index.js";
import commonjs from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite-plugin-commonjs@0.8.2/node_modules/vite-plugin-commonjs/dist/index.mjs";
import VueSetupExtend from "file:///D:/pj/sy/check/vite-vue3/node_modules/.pnpm/vite-plugin-vue-setup-extend@0.4.0_vite@4.4.9/node_modules/vite-plugin-vue-setup-extend/dist/index.mjs";
var __vite_injected_original_dirname = "D:\\pj\\sy\\check\\vite-vue3";
var vite_config_default = defineConfig({
  base: "./",
  server: {
    host: "0.0.0.0"
  },
  plugins: [
    vue(),
    commonjs(),
    AutoImport({
      resolvers: [ElementPlusResolver()],
      imports: ["vue", "vue-router"]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    }),
    VueSetupExtend(),
    viteCompression({
      verbose: true,
      disable: false,
      threshold: 10240,
      algorithm: "gzip",
      ext: ".gz"
    }),
    viteMockServe({
      mockPath: "./src/api/mock",
      force: false,
      mocks: [
        {
          url: "/api/data",
          method: "get",
          response: {
            code: 200,
            data: { message: "Hello from mock API!" }
          }
        },
        {
          url: "https://shopapi.ktvit.cn",
          // 也可以拦截带有 http 的请求
          method: "get",
          response: {
            code: 200,
            data: { message: "Hello from mock API with http!" }
          }
        }
      ]
    })
  ],
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: "@import '@/style/var.scss';"
      }
    }
  },
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "./src")
    },
    extensions: [".js", ".jsx", ".json", ".vue"]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxwalxcXFxzeVxcXFxjaGVja1xcXFx2aXRlLXZ1ZTNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXHBqXFxcXHN5XFxcXGNoZWNrXFxcXHZpdGUtdnVlM1xcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRDovcGovc3kvY2hlY2svdml0ZS12dWUzL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12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